import store from '../store'

console.log(store.state.routes[0].children)

function filteRoutes(text) {
    let arr = []
    arr = store.state.routes[0].children.filter(item => item.meta.auth.includes(text))
    return arr
}

export {
    filteRoutes
}